FROM docker.jianmuhub.com/library/node:${node_image_tag}

RUN apt update && \
        apt-get install -y  ca-certificates jq python3 python3-dev && \
        ln -s /usr/bin/python3 /usr/bin/python

RUN yarn config set registry https://registry.npm.taobao.org/ && yarn global add pnpm@x.x.x

ADD script/* /usr/local/bin/

ENTRYPOINT ["/usr/local/bin/nodejs_build"]
